<template>
	<div class="testNav">
		<div class="testN vue-flex">
			<div class="title">考试总分</div>
			<div class="branch">{{ list.totalScore }}</div>
		</div>

		<div class="testN vue-flex">
			<div class="title">交卷时间</div>
			<div class="time">{{ list.examTime }}</div>
		</div>

		<div class="testN vue-flex">
			<div class="title">考试用时</div>
			<div class="time">{{ list.useTimeLength }}</div>
		</div>

		<div class="testN vue-flex">
			<div class="title">您的总分</div>
			<div class="branch">{{ list.score }}</div>
		</div>
	</div>
</template>

<script>
import { examNote } from '../../../../network/api';
export default {
	name: 'studyDetail',
	data() {
		return {
			list: {}
		};
	},
	components: {},
	created() {},
	mounted() {
		// 上个页面的参数 id
		// console.log(this.$route.query.id);
		let param = {
			paperId: this.$route.query.id,
			userId: localStorage.getItem('userid')
		};
		examNote(param).then(res => {
			// console.log(res);
			this.list = res.retData;
		});
	},
	methods: {}
};
</script>
<style lang="scss" scoped>
.testNav {
	margin-left: 300px;

	.testN {
		margin-top: 10px;
		padding: 15px;
		background-color: #ffffff;

		.title {
			margin-right: 50px;
		}
		.time {
			color: #999999;
		}
		.branch {
			color: #cb1c1d;
		}
	}
}
</style>
